package com.zsy.springcloud.service;

import com.zsy.springcloud.fallback.AccountServiceBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;
@FeignClient(value = "cloud-account",fallback = AccountServiceBack.class)
public interface AccountService {
    //获取客户信息
    @RequestMapping(value = "/getAccount", method = RequestMethod.GET)
    public Map<String,Object> getAccount();
}
